﻿using System.ServiceModel.Channels;
using System.Threading.Tasks;
using System.Transactions;

namespace RockBus.ServiceBus
{
    public interface IMessageHandler
    {
        string Id { get; }

        Task ProcessMessageAsync(Message request, Transaction transaction);

        Task<Message> ProcessRequestAsync(Message request, Transaction transaction);
    }
}